﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Game.model.@base
{
    public class ClassType
    {
        private int _id;
        public ClassType(int id)
        {
            _id = id;
        }
        public static readonly ClassType FIGHTER=new ClassType(0);
        public static readonly ClassType MYSTIC = new ClassType(0);
        public static readonly ClassType PRIEST = new ClassType(0);
        public IEnumerable<ClassType> Values
        {
            get { yield return FIGHTER;
                yield return MYSTIC;
                yield return PRIEST;
            }
        }
        public static ClassType[] MAIN_TYPES = getMainTypes();
        public static ClassType[] getMainTypes()
        {
            return new ClassType[]
		    {
			    FIGHTER,
			    MYSTIC
		    };
        }
        public ClassType getMainType()
        {
            if (this == PRIEST)
            {
                return MYSTIC;
            }
            return this;
        }
        public bool isMagician()
        {
            return this != FIGHTER;
        }
    }
}
